.class Lcom/estrongs/android/pop/app/compress/d$d;
.super Ljava/lang/Object;
.source "CompressDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/compress/d;->e()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/compress/d;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/compress/d;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 5

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/compress/d;->b(Lcom/estrongs/android/pop/app/compress/d;)Landroid/content/Context;

    move-result-object p1

    instance-of p1, p1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz p1, :cond_0

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/compress/d;->b(Lcom/estrongs/android/pop/app/compress/d;)Landroid/content/Context;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 3
    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->b0()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 4
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string p2, "compress_lb"

    const-string v0, "sd_compress"

    invoke-virtual {p1, p2, v0}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 5
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/compress/d;->k(Lcom/estrongs/android/pop/app/compress/d;)Landroid/widget/EditText;

    move-result-object p2

    invoke-virtual {p2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2}, Lcom/estrongs/android/pop/app/compress/d;->b(Lcom/estrongs/android/pop/app/compress/d;Ljava/lang/String;)Ljava/lang/String;

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/compress/d;->j(Lcom/estrongs/android/pop/app/compress/d;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_3

    iget-object p1, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/compress/d;->j(Lcom/estrongs/android/pop/app/compress/d;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result p1

    const/4 p2, 0x1

    if-ge p1, p2, :cond_1

    goto/16 :goto_1

    .line 7
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/compress/d;->m(Lcom/estrongs/android/pop/app/compress/d;)Landroid/view/View;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    .line 8
    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/d;->l(Lcom/estrongs/android/pop/app/compress/d;)Landroid/widget/RadioGroup;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/RadioGroup;->getCheckedRadioButtonId()I

    move-result v0

    .line 9
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/RadioButton;

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-virtual {p1}, Landroid/widget/RadioButton;->getText()Ljava/lang/CharSequence;

    move-result-object p1

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, p1}, Lcom/estrongs/android/pop/app/compress/d;->c(Lcom/estrongs/android/pop/app/compress/d;Ljava/lang/String;)Ljava/lang/String;

    .line 11
    new-instance p1, Ljava/io/File;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/d;->o(Lcom/estrongs/android/pop/app/compress/d;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 12
    invoke-virtual {p1}, Ljava/io/File;->exists()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 13
    new-instance p1, Les/aj;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/d;->b(Lcom/estrongs/android/pop/app/compress/d;)Landroid/content/Context;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/compress/d$d$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/compress/d$d$a;-><init>(Lcom/estrongs/android/pop/app/compress/d$d;)V

    const/4 v2, 0x0

    invoke-direct {p1, v0, v1, v2}, Les/aj;-><init>(Landroid/content/Context;Les/aj$c;Z)V

    .line 14
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/d;->b(Lcom/estrongs/android/pop/app/compress/d;)Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f110662

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/q;->setTitle(Ljava/lang/CharSequence;)V

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/d;->b(Lcom/estrongs/android/pop/app/compress/d;)Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f11043f

    new-array p2, p2, [Ljava/lang/Object;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/compress/d;->j(Lcom/estrongs/android/pop/app/compress/d;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "."

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/compress/d;->n(Lcom/estrongs/android/pop/app/compress/d;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    aput-object v3, p2, v2

    invoke-virtual {v0, v1, p2}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/estrongs/android/ui/dialog/q;->setMessage(Ljava/lang/CharSequence;)V

    .line 16
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q;->show()V

    goto :goto_0

    .line 17
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/compress/d;->p(Lcom/estrongs/android/pop/app/compress/d;)V

    :goto_0
    return-void

    .line 18
    :cond_3
    :goto_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/compress/d;->b(Lcom/estrongs/android/pop/app/compress/d;)Landroid/content/Context;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/pop/app/compress/d$d;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {p2}, Lcom/estrongs/android/pop/app/compress/d;->b(Lcom/estrongs/android/pop/app/compress/d;)Landroid/content/Context;

    move-result-object p2

    const v0, 0x7f1106b5

    invoke-virtual {p2, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    const/16 v0, 0x3e8

    invoke-static {p1, p2, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void
.end method
